package scau.erps.service.impl;
import org.nutz.service.IdEntityService;

import scau.erps.entity.StepLimit;
import scau.erps.service.StepLimitService;

  /**
	* 订单竞价进程控制实现类
	* @author outsider
	*  
	* 
   */
public class StepLimitServiceImpl extends IdEntityService<StepLimit> implements StepLimitService {

	public StepLimit getStepLimit() {
		return this.dao().fetch(StepLimit.class, 1);
	}

	@Override
	public void setStepLimit(int step) {
		StepLimit stepLimit=this.dao().fetch(StepLimit.class, 1);
		stepLimit.setStep(step);
		this.dao().update(stepLimit);

	}

}
